// let Remote = {};
//
// //rails4 Remote.cable = Cable.createConsumer(`/cable`);
//
// Remote.cable = ActionCable.createConsumer(`/cable`);
// // Remote.cable = Cable.createConsumer(`ws://${window.location.hostname}:28080`);
//
// Remote.messaging = Remote.cable.subscriptions.create('FriendChannel', {
//   received: function(data) {
//     $(this).trigger('received', data);
//   }
// });
//
//
// Remote.order_messaging = Remote.cable.subscriptions.create('OrderChannel', {
//   received: function(data) {
//     $(this).trigger('received', data);
//   }
// });
// es6 has a error with rangerror
